﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="imglist.aspx.cs" Inherits="lgweb.inside.FocusNews.imglist" %>
<%@ Register src="~/control/inside/header.ascx" tagname="header" tagprefix="uc1" %>
<%@ Register src="~/control/inside/pager.ascx" tagname="pager" tagprefix="uc2" %>
<%@ Register src="~/control/inside/footer.ascx" tagname="footer" tagprefix="uc3" %>
<%@ Register src="~/control/inside/Usermenu.ascx" tagname="Usermenu" tagprefix="uc4" %>
<%@ Register src="~/control/inside/menu/FocusNews.ascx" tagname="office" tagprefix="uc5" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>法院要闻-龙院内部工作平台</title>
    <link href="/css/inside/base.css" rel="stylesheet" type="text/css" />
    <script src="/js/inside/base.js" type="text/javascript"></script>
    <script src="/js/common/calendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:header ID="header1" runat="server" TagIndex="3" />
    <div class="content clear">
        <div class="con231 g-mr-18">
            <uc5:office ID="office1" runat="server" />
            <uc4:Usermenu ID="Usermenu1" runat="server" />
        </div>
        <div class="con951">
            <div class="box-red">
                <p class="b-r-top"></p>
                <div class="b-r-con">
                    <div class="g-here">当前位置：<a href="/inside/index.aspx">首页</a> > <a href="/inside/FocusNews/list.aspx">法院要闻</a> > <span id="spBaoCate" runat="server">法院新闻</span></div>
                    <div class="g-search">
                        <label>部门:</label>
                        <select class="text" id="sltDepartment" runat="server">
                        <option>政治处</option>
                        </select>
                        <label>发文时间:</label><input type="text" value=""  id="txtStartDate" class="text" onclick="new Calendar().show(this);" size="10" maxlength="10" readonly="readonly" /><label>至</label><input type="text"  id="txtEndDate" value="" class="text" onclick="new Calendar().show(this);" size="10" maxlength="10" readonly="readonly" />
                        <label>关键字:</label><input type="text" value="" id="txtKeyword" class="text" />
                        <input type="button" value="搜索" class="g-btn-red" onclick="search();" />
                    </div>
                    <div class="g-list-img">
                        <ul>
                            <asp:Repeater runat="Server" ID="rptInfoList">
                                 <ItemTemplate>                                   
                                    <li>
                                        <a href="javascript:onListToDetail('<%#Eval("ID")%>');"><img src="<%#_picUrl+Eval("Pic").ToString()%>" alt="<%#Eval("Title").ToString()%>" /></a>
                                        <p><a href="javascript:onListToDetail('<%#Eval("ID")%>');" title="<%#Eval("Title").ToString()%>"><%#Eval("Title").ToString()%></a></p>
                                    </li> 
                                </ItemTemplate>
                            </asp:Repeater>  
                         </ul>
                    </div>

                    <div>
                        <uc2:pager ID="pager1" runat="server" />
                    </div>
                </div>
                <p class="b-r-bottom"></p>
            </div>
        </div>
    </div>
    <div class="g-dn">
    </div>
    <uc3:footer ID="footer1" runat="server" />
    </form>
</body>
</html>
<script type="text/javascript">
    function onListToDetail(id) {
        window.location.href = "/inside/FocusNews/imgdetial.aspx?cate=0&id=" + id;
    }
    function search() {
        var dept = "";
        var obj = document.getElementById("sltDepartment");
        for (var i = 0; i < obj.length; i++) {
            if (obj[i].selected) {
                dept = obj[i].value;
            }
        }
        dept = dept == "选择部门" ? "" : dept;
        var start = document.getElementById("txtStartDate").value;
        var end = document.getElementById("txtEndDate").value;
        var keyword = document.getElementById("txtKeyword").value;      

        window.location.href = "/inside/FocusNews/imglist.aspx?keyword=" + encodeURIComponent(keyword) + "&dept=" + encodeURIComponent(dept) + "&start=" + start + "&end=" + end + "&cate=0";
    }
</script>
